package com.fly.wound.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.time.LocalDateTime;


@TableName(value = "user")
@Data
//AR模式需要extends Model<User>
public class User extends Model<User> {

    /** 主键. */
    @TableId(value="id")
    private Long id;
    /** 姓名. */
    @TableField(value = "name",condition = SqlCondition.LIKE)
    private String name;
    /** 年龄. */
    private Integer age;
    /** 邮箱. */
    private String email;
    /** 直属上级. */
    private Long managerId;
    /** 创建时间. */
    private LocalDateTime createTime;

    /** 备注. */
    @TableField(exist = false)
    private String remark;
}
